import {
    http,
    ip,
    yxglIp,
    fysqIp
} from './http';

/**
 * @description: 所有下拉框
 * @author: xiaoxujs
 * @updata: xiaoxujs（2021-07-20） 用户下拉修改
 */

//用户list -- 下拉
export function getSysUserSelected(data) {
    const url = ip + '/sys-user/selected';
    return http(url, "get", data)
}

//客户List -- 下拉
export function getSofClientFindDropClient(data) {
    const url = yxglIp + '/sof-client/find/drop-client';
    return http(url, "get", data)
}

//合同下拉
export function getSofContractSelected(data) {
    const url = yxglIp + '/sof-contract/selected';
    return http(url, "get", data)
}

//部门list -- 下拉
export function getSysDepartmentFindList(data) {
    const url = ip + '/sysDepartment/find/list';
    return http(url, "get", data)
}
//合同-》产品 级联
export function getSofContractFindCap(data) {
    const url = yxglIp + '/sof-contract/find/cap';
    return http(url, "get", data)
}
//费用申请流水号-- 下拉
export function getAccOverallSelectPayList(data) {
    const url = fysqIp + '/acc-overall/queryBack';
    return http(url, "get", data)
}


//用户列表 -- 不是下拉
export function postSysUserFindPage(data) {
    const url = ip + '/sys-user/findPage';
    return http(url, "post", data)
}

//部门-用户
export function getSysUserTreeUserByDpt(data) {
    const url = ip + '/sys-user/treeUserByDpt';
    return http(url, "get", data)
}
//用户下拉 -- 当前部门list
export function getSysUserFindDptUser(data) {
    const url = ip + '/sys-user/find/dptUser';
    return http(url, "get", data)
}

